// ==========================================================================
// 云捷GO自动生成路由代码，只生成一次，按需修改,再次生成不会覆盖.
// 生成日期：2021-08-05 10:09:41
// 生成路径: app/controller/module/shop_router.go
// 生成人：gfcms
// ==========================================================================
package module

import (
	"myblog/app/controller/module/shop"
	"myblog/app/service/middleware/auth"
	"myblog/app/service/middleware/router"
)

//加载路由
func init() {
	g1 := router.New("admin", "/module/shop", auth.Auth)
	g1.GET("/", "module:shop:view", shop.List)
	g1.POST("/list", "module:shop:list", shop.ListAjax)
	g1.GET("/add", "module:shop:add", shop.Add)
	g1.POST("/add", "module:shop:add", shop.AddSave)
	g1.POST("/remove", "module:shop:remove", shop.Remove)
	g1.GET("/edit", "module:shop:edit", shop.Edit)
	g1.POST("/edit", "module:shop:edit", shop.EditSave)
	g1.POST("/export", "module:shop:export", shop.Export)
}
